STM debugging